package org.jeecg.modules.company.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.company.entity.ImportOrderItem;
import org.jeecg.modules.company.facade.IImportOrderItemFacade;
import org.jeecg.modules.company.service.IImportOrderItemService;
import org.jeecg.modules.company.vo.ImportOrderItemVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 出货单明细
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class ImportOrderItemFacadeImpl extends IFacadeImpl<ImportOrderItemVo, ImportOrderItem, IImportOrderItemService>  implements IImportOrderItemFacade<ImportOrderItemVo, ImportOrderItem> {
        @Autowired
        private IImportOrderItemService importOrderItemService;


         @Override
         public ImportOrderItem po2Vo(ImportOrderItemVo vo) {
                ImportOrderItem po = new ImportOrderItem();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public ImportOrderItemVo vo2Po(ImportOrderItem po) {
                ImportOrderItemVo vo = new ImportOrderItemVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
